package com.tourism.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tourism.admin.common.Result;
import com.tourism.admin.model.entity.Role;
import com.tourism.admin.model.entity.UserRole;

import java.util.List;

public interface RoleService extends IService<Role> {
    List<UserRole> getUserRoleByUserId(Integer userId);

    Result<?> deleteRoleByUserId(Integer userId);

    Result<?> insertUserRole(Integer userId, Integer roleId);
}
